<?php
// Note: This file is included from the extensions/Vcal/library/Class.EventManager.php class.


echo (
'<li>
	<input type="hidden" value="'.$this->Event->EventID.'" name="EventID"/>
	<label for="CalendarID">'.$this->Context->GetDefinition('VcalCalendarType').'</label>
	'.$this->CalendarSelect->Get().'	
</li>
<li>
	'.GetDynamicCheckBox('AllDayEvent', 1, $this->Event->AllDayEvent,'', $this->Context->GetDefinition('VcalAllDayEvent'), '', 'AllDayEvent').'
</li>
<ul id="DateTime">
<li class="Date">
	<label for="StartDate">'.$this->Context->GetDefinition('VcalStartDate').'</label>
	<input type="text" value="'.($this->Event->StartDate != ''? date("M j, Y ", strtotime($this->Event->StartDate)):'').'" maxlength="12" class="DateBox" name="StartDate" id="StartDate"/>
	<p><small>'.$this->Context->GetDefinition('VcalDateEg').'</small></p>
</li>
<li class="Time Optional">
	<label for="StartTime">'.$this->Context->GetDefinition('VcalTime').'<small> '.$this->Context->GetDefinition('Optional').'</small></label>
	<input type="text" value="'.($this->Event->StartTime != ''? date("g:i a", strtotime($this->Event->StartTime)):'').'" maxlength="8" class="TimeBox" name="StartTime" id="StartTime"/>
	<p><small>'.$this->Context->GetDefinition('VcalTimeEg').'</small></p>
</li>
<li class="Date Optional">
	<label for="EndDate">'.$this->Context->GetDefinition('VcalEndDate').'<small> '.$this->Context->GetDefinition('Optional').'</small></label>
	<input type="text" value="'.($this->Event->EndDate != ''? date("M j, Y ", strtotime($this->Event->EndDate)) : '').'" maxlength="12" class="DateBox" name="EndDate" id="EndDate"/>
	<p><small>'.$this->Context->GetDefinition('VcalDateEg').'</small></p>
</li>
<li class="Time Optional">
	<label for="EndTime">'.$this->Context->GetDefinition('VcalTime').'<small> '.$this->Context->GetDefinition('Optional').'</small></label>
	<input type="text" value="'.($this->Event->EndTime != ''? date("g:i a", strtotime($this->Event->EndTime)):'').'" maxlength="8" class="TimeBox" name="EndTime" id="EndTime"/>
	<p><small>'.$this->Context->GetDefinition('VcalTimeEg').'</small></p>
</li>
</ul><br />');

/*<li>
	<p>'.$this->Context->GetDefinition('VcalAdvanced').' <span id="repeatDescription"><a href="#" id="AdvancedShowOptions">'.$this->Context->GetDefinition('VcalShowOptions').'</a></span></p>
</li>');



<ul class="AdvancedOptions" >'.$this->CustomFields.'

</ul><br />
<li>
	<p>'.$this->Context->GetDefinition('VcalRepeat').' <span id="repeatDescription"> '.$this->Context->GetDefinition('VcalDoesNotRepeat').'  <a href="#" id="RepeatShowOptions">'.$this->Context->GetDefinition('VcalShowOptions').'</a></span></p>
</li>');

<ul id="Repeat" style="display:none;">
<li class="RepeatType">
	'.$this->RepeatList->Get().'
</li>
<li class="Seperator"></li>
<li class="RepeatTypeOptions">
	<p id="RepeatTypeNo" class="No">'.$this->Context->GetDefinition('VcalOneTimeEvent').'<br /><br /></p>
	
	<p id="RepeatTypeDaily" class="Daily" style="display:none;">'.$this->Context->GetDefinition('VcalRepeatsEvery').'
		<input type="text" maxlength="2" name="repeatDailyInterval" id="repeatDailyInterval" size="1" class="input" value="1"/>
		'.$this->Context->GetDefinition('VcalDays').'<br/><br/>
	</p>
	
	<p id="RepeatTypeWeekly" class="Weekly" style="display:none;">'.$this->Context->GetDefinition('VcalRepeatsEvery').'
		<input type="text" maxlength="2" name="repeatWeeklyInterval" id="repeatWeeklyInterval" size="1" class="input" value="1"/>
		'.$this->Context->GetDefinition('VcalWeeks').'<br/><br/>'.$this->WeekDaysCheckboxes.'<br/><br/>
	</p>
	
	<p id="RepeatTypeMonthly" class="Monthly" style="display:none;">'.$this->Context->GetDefinition('VcalRepeatsEvery').'
		<input type="text" maxlength="2" name="repeatMonthlyInterval" id="repeatMonthlyInterval" size="1" class="input" value="1"/>
		'.$this->Context->GetDefinition('VcalMonths').'<br/><br />
		<input type="radio" value="date" id="repeatMonthTypeDate" name="repeatMonthType"/>
		'.$this->Context->GetDefinition('VcalThisDate').' <br/>
		<input type="radio" value="dayOfWeek" id="repeatMonthTypeDayOfWeek" name="repeatMonthType"/>
		'.$this->Context->GetDefinition('VcalThisDateOfWeek').' '.$this->MonthWeekNum->Get().' '.$this->Context->GetDefinition('VcalWeekOfMonth').' <br/><br/>
	</p>
	
	<p id="RepeatTypeYearly" class="Yearly" style="display:none;">'.$this->Context->GetDefinition('VcalRepeatsEvery').'
		<input type="text" maxlength="2" name="repeatYearlyInterval" id="repeatYearlyInterval" size="1" class="input" value="1"/>
		'.$this->Context->GetDefinition('VcalYears').'<br/><br/>
	</p>
	
	<p id="RepeatTypeCustom"  class="Custom" style="display:none;">'.$this->Context->GetDefinition('VcalRepeatCustomDate').'</small><br /><br />
		<span class="Optional">'.$this->Context->GetDefinition('VcalSkipDateTitle').'
		<textarea id="AddCustomDates" name="customDates" style="width: 290px; height:50px;" rows="2" class="textArea">&nbsp;</textarea><br/>
		'.$this->Context->GetDefinition('VcalSkipDateRemove').'</span><br/>
	</p>
	
	<p id="RepeatTypeEnd"  class="Daily Weekly Monthly" style="display:none;">'.$this->Context->GetDefinition('VcalRepeatEndDate').
		' <input type="text" size="8" class="input" name="repeatEnd" id="eventEditRepeatEnd" value="never"/><br/><br/>
	</p>
	
	<p id="RepeatTypeSkip" class="Daily Weekly Monthly" style="display:none;"><a href="#" id="SkipShowOptions">'.$this->Context->GetDefinition('VcalRepeatSkipDate').'</a><small> '.$this->Context->GetDefinition('Optional').'</small><br /><br />
		<span class="Optional" style="display:none;">'.$this->Context->GetDefinition('VcalSkipDateTitle').'
		<textarea id="skipDateDates" name="skipDates" style="width: 290px; height:50px;" rows="2" class="textArea">&nbsp;</textarea><br/>
		'.$this->Context->GetDefinition('VcalSkipDateRemove').'</span><br/>
	</p>
</li>
<p id="dummy">Dummy text for formatting issue only. use #dummy{} css</p>
</ul>
<br />');*/
?>